/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 18:30:48
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-01-20 14:14:43
 */
// 养老机构服务管理
const policyDocument = (request) => {
	return {
		// 测试
		view_innerList(query = {}) {
			return request('/bussiness/dpServiceObject/innerList', {
				method: 'post',
				data: query,
			})
		},
		//入院全字段查询
		view_dpElderlyCheckinRecord_search(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/search', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询老人入院记录
		view_dpElderlyCheckinRecord_page(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/page', {
				method: 'post',
				data: query,
			})
		},
		//编辑老人入院记录
		view_dpElderlyCheckinRecord_edit(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		// 删除老人入院记录
		view_dpElderlyCheckinRecord_del(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpElderlyCheckinRecord_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpElderlyCheckinRecord/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpElderlyCheckinRecord_downloadTemplate(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 老人入院记录导出
		view_dpElderlyCheckinRecord_export(query = {}) {
			return request('/bussiness/dpElderlyCheckinRecord/export', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 出院全字段查询
		view_dpElderlyCheckoutRecord_search(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/search', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询老人退院记录
		view_dpElderlyCheckoutRecord_page(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/page', {
				method: 'post',
				data: query,
			})
		},
		// 老人退院记录
		view_dpElderlyCheckoutRecord_add(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/add', {
				method: 'post',
				data: query,
			})
		},
		// 老人退院记录-编辑
		view_dpElderlyCheckoutRecord_edit(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		// 老人退院记录
		view_dpElderlyCheckoutRecord_del(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导出
		view_dpElderlyCheckoutRecord_export(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/export', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 老人退院记录导入
		view_dpElderlyCheckoutRecord_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpElderlyCheckoutRecord/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 老人退院记录导入模板下载
		view_dpElderlyCheckoutRecord_downloadTemplate(query = {}) {
			return request('/bussiness/dpElderlyCheckoutRecord/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},

		// 分页查询机构打卡管理
		view_dpOrgPunchRecord_page(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/page', {
				method: 'post',
				data: query,
			})
		},
		// 编辑机构打卡管理
		view_dpOrgPunchRecord_edit(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		// 打卡全字段查询
		view_dpOrgPunchRecord_search(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/search', {
				method: 'post',
				data: query,
			})
		},
		// 机构打卡管理-删除
		view_dpOrgPunchRecord_del(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpOrgPunchRecord_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpOrgPunchRecord/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpOrgPunchRecord_downloadTemplate(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导出
		view_dpOrgPunchRecord_export(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/export', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 员工打卡导出
		view_dpOrgPunchRecord_export_staff(query = {}) {
			return request('/bussiness/dpOrgPunchRecord/export/staff', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},

		// 护理服务全字段
		view_dpNursingRecord_search(query = {}) {
			return request('/bussiness/dpNursingRecord/search', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询护理服务记录(老人服务管理)
		view_dpNursingRecord_page(query = {}) {
			return request('/bussiness/dpNursingRecord/page', {
				method: 'post',
				data: query,
			})
		},
		//编辑护理服务记录(老人服务管理)
		view_dpNursingRecord_edit(query = {}) {
			return request('/bussiness/dpNursingRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		// 护理服务记录(老人服务管理) -删除
		view_dpNursingRecord_del(query = {}) {
			return request('/bussiness/dpNursingRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 导入
		view_dpNursingRecord_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpNursingRecord/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpNursingRecord_downloadTemplate(query = {}) {
			return request('/bussiness/dpNursingRecord/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 护理服务记录导出
		view_dpNursingRecord_export(query = {}) {
			return request('/bussiness/dpNursingRecord/export', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},

		// 分页查询养老服务组织（养老机构）-基础信息
		view_dpServiceOrgBase_page(query = {}) {
			return request('/bussiness/dpServiceOrgBase/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询员工信息
		view_dpOrgStaffInfo_page(query = {}) {
			return request('/bussiness/dpOrgStaffInfo/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpOrgStaffInfo_view(id) {
			return request(`/bussiness/dpOrgStaffInfo/${id}`, {
				method: 'get'
			})
		},
		// 员工信息编辑
		view_staff_edit(query = {}) {
			return request('/bussiness/dpPractitionersExperience/staff/edit', {
				method: 'post',
				data: query,
			})
		},
		// 员工信息删除
		view_staff_delete(query = []) {
			return request('/bussiness/dpPractitionersExperience/staff/delete', {
				method: 'post',
				data: {
					batchesDel: query,
					experienceId:query[0]
				},
			})
		},
		// 办理员工入职
		view_dpPractitionersExperience_entry(query = {}) {
			return request('/bussiness/dpPractitionersExperience/entry', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 老人在院管理
const dpElderlyCheckinManage = (request) => {
	return {
		view_dpElderlyCheckinManage_page(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/page', {
				method: 'post',
				data: query,
			})
		},
		// 入院
		view_dpElderlyCheckinManage_checkin(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/checkin', {
				method: 'post',
				data: query,
			})
		},
		// 退院
		view_dpElderlyCheckinManage_checkout(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/checkout', {
				method: 'post',
				data: query,
			})
		},
		// 离院
		view_dpElderlyLeaveRecord_checkLeave(query = {}) {
			return request('/bussiness/dpElderlyLeaveRecord/checkLeave', {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_dpElderlyCheckinManage_del(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// 编辑
		view_dpElderlyCheckinManage_edit(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/edit', {
				method: 'post',
				data: query,
			})
		},
		// 查询老人在院管理列表
		view_dpElderlyCheckinManage_list(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/list', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpElderlyCheckinManage_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpElderlyCheckinManage/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpElderlyCheckinManage_downloadTemplate(query = {}) {
			return request('/bussiness/dpElderlyCheckinManage/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...policyDocument(request),
	...dpElderlyCheckinManage(request),
})
